import axios from 'axios';

export const requestLogin = params => { return axios.get("/api/Base/Login", params).then(res => res.data); };
export const AbandonStanding = params => { return axios.post("/api/AbandonStanding/PageData", params).then(res => res.data); };


export const GetTocken = params => { return axios.get("/api/Tocken/GetTocken", params).then(res => res.data); };
//二级菜单
export const Menulist= params => { return axios.get("/api/Base/TwoMenu", params).then(res => res.data); };
//企业人员数据列表
export const EnterprisePersonData = params => { return axios.post("/api/EnterprisePerson/Data", params.params).then(res => res.data); };//列表
//从业人员
export const EnterprisePerson = params => { return axios.post("/api/EnterprisePerson/PageData", params.params).then(res => res.data); };//列表
export const EnterprisePersonDetail = params => { return axios.get("/api/EnterprisePerson/FindById",params).then(res => res.data); };//详情
export const EnterprisePersonAdd = params => { return axios.post("/api/EnterprisePerson/Add", params.params).then(res => res.data); };//添加
export const EnterprisePersonDelete = params => { return axios.get("/api/EnterprisePerson/Delete", params).then(res => res.data); };//删除
export const EnterprisePersonUpdate = params => { return axios.post("/api/EnterprisePerson/Update", params.params).then(res => res.data); };//添加
/*上传头像*/
export const SingleUpdate = params => { return axios.post("/api/Base/SingleUpdate", params.params).then(res => res.data);};

//修改密码
export const ChangePassWord = params => { return axios.get("/api/Base/ChangePassWord",params).then(res => res.data); };

//视频
export const Vedio= params => { return axios.get("/api/ExternalEquipment/CameraDataAndYS", params).then(res => res.data); };


//监管人员
export const Supervisor = params => { return axios.post("/api/InstitutionPerson/GetInstitutionPersonPageDataByEnterpriseUnid", params.params).then(res => res.data); };//列表
export const SupervisorDetail = params => { return axios.get("/api/InstitutionPerson/FindById",params).then(res => res.data); };//详情

//通知公告
export const PublicNotice = params => { return axios.post("/api/PublicNotice/GetPageDataByEnterprise", params.params).then(res => res.data); };//列表
export const PublicNoticedetail = params => { return axios.get("/api/PublicNotice/FindById",params).then(res => res.data); };//详情



//每日晨检（完成）
export const MorningRecord = params => { return axios.post("/api/MorningRecord/PageData", params.params).then(res => res.data); };//列表
export const MorningRecordDetail = params => { return axios.get("/api/MorningRecord/FindById",params).then(res => res.data); };//详情
export const MorningRecordAdd = params => { return axios.post("/api/MorningRecord/Add", params.params).then(res => res.data); };//添加
export const MorningRecordDelete = params => { return axios.get("/api/MorningRecord/Delete", params).then(res => res.data); };//删除
export const MorningRecordUpdate = params => { return axios.post("/api/MorningRecord/Update", params.params).then(res => res.data); };//添加


//废弃物管理
export const abandonStanding= params => { return axios.post("/api/AbandonStanding/PageData", params.params).then(res => res.data); };//列表
export const AbandonStandingAdd = params => { return axios.post("/api/AbandonStanding/Add", params.params).then(res => res.data); };//添加
export const AbandonStandingUpdate = params => { return axios.post("/api/AbandonStanding/Update", params.params).then(res => res.data); };//修改
export const AbandonStandingDelete = params => { return axios.get("/api/AbandonStanding/Delete", params).then(res => res.data); };//删除

//出货记录
export const DemandCertificateOutput= params => { return axios.post("/api/DemandCertificateOutput/PageData", params.params).then(res => res.data); };//列表
export const DemandCertificateOutputDetail= params => { return axios.get("/api/DemandCertificateOutput/FindById", params).then(res => res.data); };//详情
export const DemandCertificateOutputAdd= params => { return axios.post("/api/DemandCertificateOutput/Add", params.params).then(res => res.data); };//添加
export const DemandCertificateOutputDelete= params => { return axios.get("/api/DemandCertificateOutput/Delete", params).then(res => res.data); };//删除
export const DemandCertificateOutputUpdate= params => { return axios.post("/api/DemandCertificateOutput/Update", params.params).then(res => res.data); };//修改

//清洗消毒（完成）
export const Disinfect= params => { return axios.post("/api/Disinfect/PageData", params.params).then(res => res.data); };//列表
export const DisinfectDetail= params => { return axios.get("/api/Disinfect/FindById", params).then(res => res.data); };//详情
export const DisinfectAdd = params => { return axios.post("/api/Disinfect/Add", params.params).then(res => res.data); };//添加
export const DisinfectUpdate = params => { return axios.post("/api/Disinfect/Update ", params.params).then(res => res.data); };//修改
export const DisinfectDelete = params => { return axios.get("/api/Disinfect/Delete", params).then(res => res.data); };//删除

//五病调离（完成）
export const OffTheRecord= params => { return axios.post("/api/OffTheRecord/PageData", params.params).then(res => res.data); };//列表
export const OffTheRecordDetail= params => { return axios.get("/api/OffTheRecord/FindById", params).then(res => res.data); };//详情
export const OffTheRecordAdd = params => { return axios.post("/api/OffTheRecord/Add", params.params).then(res => res.data); };//添加
export const OffTheRecordUpdate = params => { return axios.post("/api/OffTheRecord/Update ", params.params).then(res => res.data); };//修改
export const OffTheRecordDelete = params => { return axios.get("/api/OffTheRecord/Delete", params).then(res => res.data); };//删除

//食品留样(完成)
export const KeepSample= params => { return axios.post("/api/KeepSample/PageData", params.params).then(res => res.data); };//列表
export const KeepSampleDetail= params => { return axios.get("/api/KeepSample/FindById", params).then(res => res.data); };//详情
export const KeepSampledAdd = params => { return axios.post("/api/KeepSample/Add", params.params).then(res => res.data); };//添加
export const KeepSampleUpdate = params => { return axios.post("/api/KeepSample/Update ", params.params).then(res => res.data); };//修改
export const KeepSampleDelete = params => { return axios.get("/api/KeepSample/Delete", params).then(res => res.data); };//删除

//进货
export const DemandCertificate= params => { return axios.post("/api/DemandCertificate/PageData", params.params).then(res => res.data); };//列表
export const DemandCertificateAdd= params => { return axios.post("/api/DemandCertificate/Add", params.params).then(res => res.data); };//添加
export const DemandCertificateDelete= params => { return axios.get("/api/DemandCertificate/Delete", params).then(res => res.data); };//删除
export const DemandCertificateUpdate= params => { return axios.post("/api/DemandCertificate/Update", params.params).then(res => res.data); };//删除
//附件上传
export const UploadSingleFile = params => { return axios.post("/api/Base/UploadSingleFile", params).then(res => res.data); };//附件上传
export const GetGuid = params => { return axios.get("/api/Base/Guid",params).then(res => res.data); };//32unid
export const FileData = params => { return axios.get("/api/Base/FileData",params).then(res => res.data); };//取列表方法
export const DeleteFile = params => { return axios.get("/api/Base/DeleteFile",params).then(res => res.data); };//删除
/**********************************************************台账配置**************************************************************** */
//食品类别

export const DemandType = params => { return axios.post("/api/Config_DemandType/PageData",params.params).then(res => res.data); };//食品类别
export const DemandTypeDetail= params => { return axios.get("/api/Config_DemandType/FindById", params).then(res => res.data); };//详情
export const DemandTypeAdd = params => { return axios.post("/api/Config_DemandType/Add", params.params).then(res => res.data); };//添加
export const DemandTypeUpdate = params => { return axios.post("/api/Config_DemandType/Update ", params.params).then(res => res.data); };//修改
export const DemandTypeDelete = params => { return axios.get("/api/Config_DemandType/Delete", params).then(res => res.data); };//删除
export const DemandTypeBind = params => { return axios.get("/api/Config_DemandType/DataBind", params).then(res => res.data); };//下拉

//食品名称
export const DemandWarehouse = params => { return axios.post("/api/DemandWarehouse/PageData",params.params).then(res => res.data); };//列表
export const DemandWarehouseDetail= params => { return axios.get("/api/DemandWarehouse/FindById", params).then(res => res.data); };//详情
export const DemandWarehouseAdd = params => { return axios.post("/api/DemandWarehouse/Add", params.params).then(res => res.data); };//添加
export const DemandWarehouseUpdate = params => { return axios.post("/api/DemandWarehouse/Update ", params.params).then(res => res.data); };//修改
export const DemandWarehouseDelete = params => { return axios.get("/api/DemandWarehouse/Delete", params).then(res => res.data); };//删除

//管理人员
export const FuQingPerson = params => { return axios.post("/api/FuQingPerson/PageData",params.params).then(res => res.data); };//列表
export const FuQingPersonDetail= params => { return axios.get("/api/FuQingPerson/FindById", params).then(res => res.data); };//详情
export const FuQingPersonAdd = params => { return axios.post("/api/FuQingPerson/Add", params.params).then(res => res.data); };//添加
export const FuQingPersonUpdate = params => { return axios.post("/api/FuQingPerson/Update ", params.params).then(res => res.data); };//修改
export const FuQingPersonDelete = params => { return axios.get("/api/FuQingPerson/Delete", params).then(res => res.data); };//删除

//供应商
export const CEKeepList = params => { return axios.post("/api/CEKeep/DetailPageData",params.params).then(res => res.data); };//列表
export const CEKeepDetail= params => { return axios.get("/api/CEKeep/FindById2", params).then(res => res.data); };//详情
export const CEKeepAdd = params => { return axios.post("/api/CEKeep/Add", params.params).then(res => res.data); };//添加
export const CEKeepUpdate = params => { return axios.post("/api/CEKeep/Update ", params.params).then(res => res.data); };//修改
export const CEKeepDelete = params => { return axios.get("/api/CEKeep/Delete", params).then(res => res.data); };//删除
export const CEKeep = params => { return axios.get("/api/CEKeep/DataBind",params).then(res => res.data); };

//场所设备
export const PlaceLayout = params => { return axios.post("/api/PlaceLayout/PageData",params.params).then(res => res.data); };//列表
export const PlaceLayoutAdd = params => { return axios.post("/api/PlaceLayout/Add", params.params).then(res => res.data); };//添加
export const PlaceLayoutDetail= params => { return axios.get("/api/PlaceLayout/FindById", params).then(res => res.data); };//详情
export const PlaceLayoutUpdate= params => { return axios.post("/api/PlaceLayout/Update ", params.params).then(res => res.data); };//修改
export const PlaceLayoutDelete= params => { return axios.get("/api/PlaceLayout/Delete", params).then(res => res.data); };//删除
export const PlaceLayoutGetlist= params => { return axios.get("/api/PlaceLayout/GetListData", params).then(res => res.data); };//删除

//法律法规
export const News= params => { return axios.post("/api/News/PageData",params.params).then(res => res.data); };//列表
export const Newsdetail= params => { return axios.get("/api/News/FindById",params).then(res => res.data); };//列表详情


//根据传入的条件获取原料数据列表


//信用档案
export const creditEnterprise= params => { return axios.get("/api/Enterprise/Enterprise",params).then(res => res.data); };//列表详情
export const IssuingAuthorityData= params => { return axios.get("/api/Base/IssuingAuthorityData",params).then(res => res.data); };//发证机关
export const EconomicTypeData= params => { return axios.get("/api/Base/EconomicTypeData",params).then(res => res.data); };//经济性质
export const MainIndustryTwo= params => { return axios.get("/Resource/Json/MainIndustryTwo.json",params).then(res => res.data); };//主体业态二级
export const MainIndustryThree= params => { return axios.get("/Resource/Json/MainIndustryThree.json",params).then(res => res.data); };//主体业态三级

export const QuantitativeLevelData= params => { return axios.post("/api/SubjectCreditIView/QuantitativeLevelData",params.params).then(res => res.data); };//量化信息1
export const SupervisionScoreData= params => { return axios.post("/api/SubjectCreditIView/SupervisionScoreData",params.params).then(res => res.data); };//量化信息2

export const FashCheckInfoData= params => { return axios.post("/api/SubjectCreditIView/FashCheckInfoData",params.params).then(res => res.data); };//快检
export const SupervisionSamplingData= params => { return axios.post("/api/SubjectCreditIView/SupervisionSamplingData ",params.params).then(res => res.data); };//抽样检测

export const SubjectCreditRewardPunishData= params => { return axios.post("/api/SubjectCreditIView/SubjectCreditRewardPunishData ",params.params).then(res => res.data); };//行政类

export const PageDataByUnid= params => { return axios.post("/api/SubjectCreditIView/PageDataByUnid ",params.params).then(res => res.data); };//日常检查
export const DataUnid= params => { return axios.get("/api/CheckMain/DataUnid", params).then(res => res.data); };//详情
export const Documents= params => { return axios.get("/api/SupervisionRecordDocument/SupervisionRecordDocumentData", params).then(res => res.data); };//文书

export const GetCheck= params => { return axios.get("/api/CheckSmall/GetCheck", params).then(res => res.data); };//餐饮服务日常监督检查要点表
export const FindCheckDocument= params => { return axios.get("/api/CheckDocumentResultNew/FindCheckDocument", params).then(res => res.data); };//餐饮服务日常监督检查要点表结果
export const PrintRecord= params => { return axios.get("/api/CheckDocumentResultNew/PrintRecord", params).then(res => res.data); };//餐饮服务日常监督检查要点表（导出）
export const FindCheckResultNew= params => { return axios.get("/api/CheckSmall/FindCheckResultNew",params).then(res => res.data); };//结果



export const Get42= params => { return axios.get("/api/Document/Get42", params).then(res => res.data); };//获取监督意见书
export const Get8= params => { return axios.get("/api/Document/Get8", params).then(res => res.data); };//现场笔录
export const Get12= params => { return axios.get("/api/Document/Get12", params).then(res => res.data); };//		查封（扣押）决定书
export const Get15= params => { return axios.get("/api/Document/Get15", params).then(res => res.data); };//查封（扣押）延期通知书文书

export const Get20= params => { return axios.get("/api/Document/Get20", params).then(res => res.data); };//责令改正通知书文书

export const Get38= params => { return axios.get("/api/Document/Get38", params).then(res => res.data); };//查看（先登与责改）送达回执文书
export const Print38= params => { return axios.get("/api/Document/Print38", params).then(res => res.data); };//导出（先登与责改）送达回执文书